package com.heima.model.article.dtos;

import com.heima.model.article.pojos.ApArticle;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class ArticleDto extends ApArticle {
    /**
     * 文章内容
     */
    private String content;

    @Override
    public String toString() {
        return super.toString() + // 打印父类属性
                "ArticleDto{" +
                "content='" + content + '\'' +
                '}';
    }
}